package org.example3;


public class MyGenericClass<T> {
   private T t;

    public MyGenericClass() {
        System.out.println("MyGenericClass无参构造执行了");
    }

    public T getType() {
        return t;
    }

    public void setType(T t) {
        this.t = t;
    }

    @Override
    public String toString() {
        return "MyGenericClass{" +
                "t=" + t +
                '}';
    }
}
